package cn.iocoder.boot.springai001.tools.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 执行SQL响应 VO
 *
 * @author Agent System
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "执行SQL响应")
public class ExecuteSqlRespVO {

    @Schema(description = "是否成功", example = "true")
    private Boolean success;

    @Schema(description = "查询结果（JSON字符串）", example = "[{\"id\":1,\"name\":\"张三\"}]")
    private String result;

    @Schema(description = "记录数量", example = "10")
    private Integer recordCount;

    @Schema(description = "执行时间(ms)", example = "50")
    private Long executionTime;

    @Schema(description = "执行的SQL", example = "SELECT * FROM users LIMIT 10")
    private String sql;

    @Schema(description = "错误信息")
    private String errorMessage;
}

